package com.eastcom.providor.service.extview;

import java.util.ArrayList;
import java.util.List;

import com.eastcom.bm.atom.Atom_MetalKpiBase;

public class MetalKpiBaseUtil {

	public static List<Atom_MetalKpiBase> createDatasetDefine(List<Atom_MetalKpiBase> metalKpiBases){
		if(metalKpiBases==null||metalKpiBases.isEmpty())
			return null;
		
		List<Atom_MetalKpiBase> results=new ArrayList<Atom_MetalKpiBase>();
		for(Atom_MetalKpiBase metalKpiBase:metalKpiBases){
			Atom_MetalKpiBase result=new Atom_MetalKpiBase();
			result.setId(metalKpiBase.getId());
			result.setCn_name(metalKpiBase.getCn_name());
			result.setBusinessId(metalKpiBase.getBusinessId());
			result.setDesc(metalKpiBase.getDesc());
			result.setRelatedKpis(metalKpiBase.getRelatedKpis());
			result.setType(metalKpiBase.getType());
			
			results.add(result);
		}
		
		return results;
	}
}
